package BianMa;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String str = "ai你哟";
        byte[] bytes = str.getBytes();
        System.out.println(Arrays.toString(bytes));

        System.out.println("=========================");

        byte[] bytes1 = str.getBytes("GBK");
        System.out.println(Arrays.toString(bytes1));
    }
}
